<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../lib/vue.js"></script>
</head>
<body>
    <div id="app">
        <input placeholder="13" type="text" @keyup.13="fn">
        <input placeholder="enter" type="text" @keyup.enter="fn">
        <input placeholder="a" type="text" @keyup.a="fn">
        <input placeholder="65" type="text" @keyup.65="fn">
        <input placeholder="left" type="text" @keyup.left="fn">
        <input placeholder="37" type="text" @keyup.37="fn">
        <input placeholder="space" type="text" @keyup.space="fn">
        <input placeholder="ctrl" type="text" @keydown.ctrl="fn">
        <input placeholder="ctrl+c" type="text" @keydown.ctrl.c="fn">
        <input placeholder="ctrl+v" type="text" @keydown.ctrl.v="fn">
        <input placeholder="alt" type="text" @keydown.prevent.alt="fn">
        <input type="text">

    </div>
</body>
<script>
    new Vue({
        el:"#app",
        methods:{
            fn(e){
                console.log("运行啦！",e.keyCode);
            }
            // fn(e){
            //     if(e.keyCode === 13)
            //         console.log("运行啦！");
            // }
        }
    })
</script>
</html>